<?php
function page_term(){
  $tid = arg(2);
  $term = taxonomy_term_load($tid);
  if(!isset($term->tid)){
    drupal_access_denied();
  }
  $output = '';
  switch ($term->vocabulary_machine_name) {
    case 'news':
      $output = page_term_news($term);
    break;
  }
  return $output;
}

function page_term_news($term){
  $output = '';
  $select = taxonomy_select_nodes($term->tid, true, 10);
  if(!empty($select)){
    $nids = array();
    foreach ($select as $value) {
      $nids[] = $value->nid;
    }
    $nodes = node_load_multiple($nids);
    //chua co' html
    $output .= node_view_multiple($nodes, 'teaser').theme('pager');
  }                  
  $output .= node_extra_most_viewed_news();
  $output .= node_extra_featured_news();
  return $output;
}